package com.nuit.cxl.bilibili.service.impl;

import com.nuit.cxl.bilibili.dao.RecommendDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Service
public class RecommendServiceImpl implements com.nuit.cxl.bilibili.service.RecommendService {

    @Autowired
    RecommendDao recommendDao;
    @Value("${recommend.name}")
    String userName;

    @Override
    public String[] fetchRecommend() {
//        ArrayList
        System.out.println(userName);
        String[] recommends = recommendDao.getDataFromDatabase();
        return recommends;
    }

}
